package com.lovesher.payment.web.convert;

import org.springframework.core.convert.converter.Converter;
import org.springframework.stereotype.Component;

@Component
public class StringConverterConfig implements Converter<String, String> {

	@Override
	public String convert(String source) {
		String value = source.trim();
		if ("".equals(value)) {
			return null;
		} else {
			return source;
		}
	}

}